<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<article class="site-content">
	<div class="site-content-box">
		<div id="item">
			<div class="pic">
				<img alt="" src="${itemResult.item.picUrl }">
			</div>
			<div class="info">
				<h2>${itemResult.item.title }</h2>
				<ul>
					<li><span class="attr">淘宝价格：</span>${itemResult.item.price } 元</li>
					<li><span class="attr">所在地点：</span>${itemResult.item.location.state }-${itemResult.item.location.city }</li>
					<li><span class="attr">运费承担：</span><c:if test="${itemResult.item.freightPayer=='seller' }">卖家</c:if></li>
					<c:if test="${itemResult.item.freightPayer=='buyer' }">
					<li><span class="attr">运费介绍：</span><em>平邮：${itemResult.item.postFee }元	快递：${itemResult.item.expressFee }元	EMS：${itemResult.item.emsFee }元</em></li>
					</c:if>
					<li><span class="attr">最近销量：</span><c:out value="${itemResult.item.volume }" default="0"></c:out> 件</li>
					<li><span class="attr">商品数量：</span>${itemResult.item.num } 件</li>
					<li><span class="attr">上架时间：</span><fmt:formatDate value="${itemResult.item.listTime }" pattern="yyyy-MM-dd"/></li>
					<li><span class="attr">有效期为：</span>${itemResult.item.validThru } 天</li>
				</ul>
				<div class="buy">
					<a href="${ctx }/buy/${itemResult.item.numIid}" target="_blank" class="buy-btn"><img alt="" src="../image/buy.gif"></a>
				</div>
			</div>
			<div class="clean"></div>
			<div class="desc">
				<c:out value="${itemResult.item.desc }" escapeXml="false"></c:out>
			</div>
		</div>
	</div>
</article>
<aside class="site-sidebar">
	<div class="site-sidebar-box">
		<div class="seller">
			<h1>淘宝商家信息</h1>
			<div class="info">
				<img alt="" src="http://img01.taobaocdn.com/shop-logo${shopResult.picPath }">
				<ul>
					<li><span>${shopResult.nick }</span></li>
					<li><span>卖家信用：</span>${itemResult.sellerCreditScore }</li>
				</ul>
			</div>
			<div class="clean"></div>
			<div class="shop">
				<a href="${ctx }/shop/${itemResult.item.numIid }" target="_blank" class="shop-btn">进入店铺</a>
			</div>
		</div>
	</div>
</aside>
</body>
</html>